package com.cx.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author cx
 * @since 2024-06-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_user_authority")
@ApiModel(value = "UserAuthority对象", description = "")
public class UserAuthority implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "权限主键")
    @TableId(value = "rid", type = IdType.AUTO)
    private Integer rid;

    @ApiModelProperty(value = "关联的用户id")
    private Integer userId;

    @ApiModelProperty(value = "权限")
    private String authority;

    @ApiModelProperty(value = "用户角色名")
    private String roleName;


}
